package com.study.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.study.datebase.BaseDo;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author canace
 * @since 2024-01-22
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@TableName("t_link_stats_today")
public class TLinkStatsToday extends BaseDo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 分组标识
     */
    private String gid;

    /**
     * 短链接
     */
    private String fullShortUrl;

    /**
     * 日期
     */
    private Date date;

    /**
     * 今日PV
     */
    private Integer todayPv;

    /**
     * 今日UV
     */
    private Integer todayUv;

    /**
     * 今日IP数
     */
    private Integer todayUip;

    public TLinkStatsToday() {
    }

    public TLinkStatsToday(Long id, String gid, String fullShortUrl, Date date, Integer todayPv, Integer todayUv, Integer todayUip) {
        this.id = id;
        this.gid = gid;
        this.fullShortUrl = fullShortUrl;
        this.date = date;
        this.todayPv = todayPv;
        this.todayUv = todayUv;
        this.todayUip = todayUip;
    }
}
